
const EnvContext = require('../../common/context/EnvContext');

const { runIndependentPlugin } = require('../../core/pluginRunService/runIndependentPlugin');
const { getPluginByName } = require('../../core/pluginSearchService/getPluginByName');


exports.runSysPluginByName = function (payload) {
    EnvContext.getInstance().mainWin.hide()
    const artifactId = payload
    const groupId = "com.appBridge.core"
    getPluginByName(artifactId, groupId).then((plugin) => { runIndependentPlugin(plugin) })

}